package cn.ainit.sys.menu;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * SysSessionContorl entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "SYS_SESSION_CONTORL")
public class SysSessionContorl implements java.io.Serializable {

	// Fields

	private String id;
	private String sessionId;
	private String loginIp;
	private String departId;
	private String userName;
	private Date loginTime;
	private String isOnline;
	private String userid;

	// Constructors

	/** default constructor */
	public SysSessionContorl() {
	}

	/** minimal constructor */
	public SysSessionContorl(String id, String sessionId) {
		this.id = id;
		this.sessionId = sessionId;
	}

	/** full constructor */
	public SysSessionContorl(String id, String sessionId, String loginIp,
			String departId, String userName, Date loginTime, String isOnline) {
		this.id = id;
		this.sessionId = sessionId;
		this.loginIp = loginIp;
		this.departId = departId;
		this.userName = userName;
		this.loginTime = loginTime;
		this.isOnline = isOnline;
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false, length = 100)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "SESSION_ID", nullable = false, length = 32)
	public String getSessionId() {
		return this.sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	@Column(name = "LOGIN_IP", length = 32)
	public String getLoginIp() {
		return this.loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	@Column(name = "DEPART_ID", length = 32)
	public String getDepartId() {
		return this.departId;
	}

	public void setDepartId(String departId) {
		this.departId = departId;
	}

	@Column(name = "USER_NAME", length = 32)
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LOGIN_TIME", length = 7)
	public Date getLoginTime() {
		return this.loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	@Column(name = "IS_ONLINE", length = 1)
	public String getIsOnline() {
		return this.isOnline;
	}

	public void setIsOnline(String isOnline) {
		this.isOnline = isOnline;
	}

	public String getUserid() {
		return userid;
	}
	@Column(name = "USERID", length = 1)
	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	
	
	
	

}